<h1><%= title "County of #{@county.name}" %></h1>

<p>
  <b>Duchy:</b>
  <%=link_to_record @county.duchy %>
</p>

<p>
  <b>Ruler:</b>
  <%=link_to_record Title.count_of @county %>
</p>

<p>
  <b>Infrastructure:</b>
  <%=h @county.infrastructure %>
</p>

<% if @county.HRE %>
<p>Part of H.R.E.</p>
<% end %>

<div id="towns">
	<h2>Towns</h2>
	<ul>
	<%= list_records (@county.towns)%>
	</ul>
</div>
<div id="courtiers">
	<%= render :partial => '/shared/courtiers', :locals => {:territory => @county} %>
</div>
<%= render :partial => '/shared/court_actions', :locals => {:territory => @county} %>

<% if is_admin? %>
<%= link_to 'Edit', edit_county_path(@county) %> |
<%= link_to 'Back', counties_path %> |
<% end %>

<%= link_to 'Home', '/' %>
